/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/9 15:02
 * @copyright: 博为峰
 */
public class ForDemo02 {
    public static void main(String[] args) {
       /*
          break; 结束整个循环
          continue; 结束本次循环
       */
        for (int i = 0; i < 5; i++) {
            if (i == 2) {
//                break;
                continue;
            }
//            System.out.println("i = " + i);
        }

        //无线循环
        for (; ; ) {
        }
    }
}
